package com.jeasonzhao.report.engine.servlet;

public class Constants
{
    private static final String ROOT = "JEASONZHAO_SQPRPT_";
    public static final String REPORTID = "REPORTID";
    public static final String
        PAGESIZE = ROOT + "PAGESIZE"
        ,PAGENO = ROOT + "PAGENO"
        ,REPORTDEFINATION = ROOT + "DEFINATION"
        ,RENDERKEY = ROOT + "RENDERKEY"
        ,DYNAMIC = ROOT + "DYNAMIC"
        ;
    private Constants()
    {
    }

    public static String getParameterContolName(String key)
    {
        if(null==key)
        {
            return null;
        }
        key=key.replaceAll("@","")
            .replaceAll(":","");
        return ROOT + key;
    }
}
